<?php
$email = array(
	'name'	=> 'email',
	'id'	=> 'email',
	'value'	=> set_value('email'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
?>

<?php if( $message != NULL ): ?>
	<?php
		$message->type = ($message->type != NULL) ? 'alert-'.$message->type : '';
	?>
    <div class="alert <?php echo $message->type; ?>">
    	<a class="close" data-dismiss="alert">×</a>
    	<?php echo $message->text; ?>
    </div>
<?php endif; ?>

<?php echo form_open($this->uri->uri_string()); ?>
<table>
	<tr>
		<td><?php echo form_label('Email Address', $email['id']); ?></td>
		<td><?php echo form_input($email); ?></td>
		<td style="color: red;"><?php echo form_error($email['name']); ?><?php echo isset($errors[$email['name']])?$errors[$email['name']]:''; ?></td>
	</tr>
</table>
<?php echo form_submit('send', 'Send'); ?>
<?php echo form_close(); ?>